package org.szy.plugin.dev.pojo;

import org.szy.core.common.entity.BaseTreeNode;

import java.util.List;

/**
 * 树形字典
 *
 * @author 孙志阳
 * @date 2023-02-17
 * @since 1.0.0
 **/
public class DevDictTree implements BaseTreeNode<DevDictTree> {

    private Object id;

    /**
     * 父节点
     */
    private Object pid;
    /**
     * 名称
     */
    private String label;
    /** 字典类型 */
    private String category;
    /**
     * 字典值
     */
    private String value;
    /**
     * 字典标识
     */
    private String code;

    private Integer level;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 状态（1-启用，0-停用）
     */
    private Integer status;

    private List<DevDictTree> children;

    @Override
    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    @Override
    public Object getPid() {
        return pid;
    }

    public void setPid(Object pid) {
        this.pid = pid;
    }

    public String getLabel() {
        return label;
    }
    public void setLabel(String label) {
        this.label = label;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<DevDictTree> getChildren() {
        return children;
    }

    @Override
    public void setChildren(List<DevDictTree> children) {
        this.children = children;
    }
}
